<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sn" data-rule="required" class="form-control" name="row[sn]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Deposit_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-deposit_id" data-rule="required" data-source="mycurrency/lease/deposit/index" class="form-control selectpage" name="row[deposit_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Strategy_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-strategy_id" data-rule="required" data-source="mycurrency/lease/strategy/index" class="form-control selectpage" name="row[strategy_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Strategy_types')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-strategy_types" data-rule="required" class="form-control selectpicker" name="row[strategy_types]">
                {foreach name="strategyTypesList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Strategy_package_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-strategy_package_id" data-rule="required" data-source="mycurrency/lease/strategy/package/index" class="form-control selectpage" name="row[strategy_package_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Strategy_duration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-strategy_duration" class="form-control" name="row[strategy_duration]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Strategy_unit_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-strategy_unit_price" class="form-control" step="0.01" name="row[strategy_unit_price]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Limit_start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-limit_start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[limit_start_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Limit_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-limit_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[limit_end_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Strategy_free_duration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-strategy_free_duration" class="form-control" name="row[strategy_free_duration]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Strategy_free_frequency')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-strategy_free_frequency" class="form-control" name="row[strategy_free_frequency]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Strategy_free_cycle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-strategy_free_cycle" class="form-control" name="row[strategy_free_cycle]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Strategy_overtime_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-strategy_overtime_money" class="form-control" step="0.01" name="row[strategy_overtime_money]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Strategy_overtime_company')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-strategy_overtime_company" class="form-control" name="row[strategy_overtime_company]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lease_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lease_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[lease_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Return_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-return_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[return_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Overtime_duration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-overtime_duration" class="form-control" name="row[overtime_duration]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rent_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rent_fee" class="form-control" step="0.01" name="row[rent_fee]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Overtime_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-overtime_fee" class="form-control" step="0.01" name="row[overtime_fee]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paymen_required')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paymen_required" class="form-control" step="0.01" name="row[paymen_required]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paid_dlready')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paid_dlready" class="form-control" step="0.01" name="row[paid_dlready]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="useStatusList" item="vo"}
            <label for="row[use_status]-{$key}"><input id="row[use_status]-{$key}" name="row[use_status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cancell_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-cancell_type" class="form-control selectpicker" name="row[cancell_type]">
                {foreach name="cancellTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="payStatusList" item="vo"}
            <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
